<@override name="head">	
<title>创建账号</title>
<link rel="stylesheet" href="${ctx}/assets/css/ace.min.css"/>
<script type="text/javascript" src="${ctx}/assets/js/lib/ajaxfileupload.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/lib/ace-elements.min.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common/uploadFile.js"></script>

<script type="text/javascript" src="${ctx}/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootbox.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common/validate.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/back/clientAccount.js"></script>

</@override>	
<@override name="body">
<div id=content_bg>
<#include "/main/home/common.ftl"/>
	<div id= "pagecontent">
		<div id="content">
	   		<div id="navDiv">
				<ul id="navDiv_ul">
					<li><i class="icon-home"></i></li>
					<li><a href="${ctx}/back/main/dashboard">首页</a></li>
					<li><i class="icon-angle-right"></i></li>
					<li><a href="${ctx}/back/main/client-account/list">客户账号管理</a></li>
					<li><i class="icon-angle-right"></i></li>
					<li class="navDiv_currentLi">创建账号</li>
				</ul>  
	 		</div>
	 		<form id="validateForm" action="${ctx}/back/main/client-account/save" method="post">
	 			<input type="hidden" name="id" id="accountId" value=""/>
	 			<input type="hidden" id="sysType" value="${sysType!}"/>
	 			<input type="hidden" id="type" value=""/>
	 			<input type="hidden" id="power" name="power" value=""/>
	 			<div class="input-group" id="ac_type">
					<label class="input-label"><span class="lbl-yes">*</span>系统类型：</label>
					<input class="9 input-radio" id="input-radio-oper" name="sysType" type="radio" value="2" <#if sysType==2>checked</#if>/><span class="input-radio-span">媒体</span>
					<input class="7 input-radio" id="input-radio-adver" name="sysType" type="radio" value="3" <#if sysType==3>checked</#if>/><span class="input-radio-span">需求方</span>
				</div>
				
				<div class="autorityType input-group  power">
					<label class="input-label"><span class="lbl-yes">*</span>权限类型：</label>
					
				</div>	
				
				<div class="input-group hideAdverstierAccount hideClientAccount">
					<label class="input-label"><span class="lbl-yes">*</span>账号类型：</label>
					<input class="input-radio" name="type" type="radio" value="1"/><span class="input-radio-span">内部代理商</span>
					<input class="input-radio" name="type" type="radio" value="5" /><span class="input-radio-span">广告主代理</span>
				</div>
				<div class="input-group hideOperatorAccount">
					<label class="input-label"><span class="lbl-yes">*</span>账号类型：</label>
					<input class="input-radio" name="type" type="radio" value="2" /><span class="input-radio-span">运营商</span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-yes">*</span>账号：</label>
					<input class="input-text" tabindex="1" id="accountName" name="accountName" type="text" value="" verify="email/255/1/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group" id="password-div">
					<label class="input-label"><span class="lbl-yes">*</span>密码：</label>
					<span id="password-span"><input class="input-text" tabindex="2" id="password" name="password" type="password" value="" verify="unspecial/100/1/0"/></span><span class="spanVaildate"></span>
				</div>
				<div class="input-group" id="ensurePassword-div">
					<label class="input-label"><span class="lbl-yes">*</span>确认密码：</label>
					<span id="ensurePassword-span"><input class="input-text" tabindex="3" id="ensurePassword" name="ensurePassword" type="password" value="" verify="unspecial/100/1/0"/></span>
					<input id="input-password-create" type="checkbox" class="input-password"><span class="input-password-span">显示密码</span>
					<span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>联系人：</label>
					<input class="input-text" tabindex="4" id="linkMan" name="linkMan" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>移动电话：</label>
					<input class="input-text" tabindex="5" id="mobilePhone" name="mobilePhone" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>固定电话：</label>
					<input class="input-text" tabindex="6" id="tel" name="tel" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-yes">*</span>公司名称：</label>
					<input class="input-text" tabindex="7" id="companyName" name="companyName" type="text" value="" verify="unspecial/255/1/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>网站：</label>
					<input class="input-text" tabindex="8" id="homePage" name="homePage" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<!--
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>公司LOGO：</label>
					<div id="iconPath_div" class="selectFile_div">
						<input id="iconPath" type="hidden" name="idPath" value=""/>
						<input id="iconPath_input_id" type="file" name="file"/>
						<button id="iconPathUploadfilestr" class="uploadOrView" type="button" href="${ctx}/back/main/client-account/iconUpload">上传</button>
					</div>
				</div>
				-->
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>公司地址：</label>
					<input class="input-text" tabindex="9" id="address" name="address" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>邮编：</label>
					<input class="input-text" tabindex="10" id="zip" name="zip" type="text" value="" verify="text/6/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-no"></span>电子邮件：</label>
					<input class="input-text" tabindex="11" id="email" name="email" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group hideOperator">
					<label class="input-label"><span class="lbl-no"></span>银行名称：</label>
					<input class="input-text" tabindex="12" id="bank" name="bank" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group hideOperator">
					<label class="input-label"><span class="lbl-no"></span>开户人：</label>
					<input class="input-text" tabindex="13" id="bankAccountName" name="bankAccountName" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group hideOperator">
					<label class="input-label"><span class="lbl-no"></span>银行账户：</label>
					<input class="input-text" tabindex="14" id="bankAccount" name="bankAccount" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group hideAdverstier hideClientAccount">
					<label class="input-label"><span class="lbl-no"></span>发票抬头：</label>
					<input class="input-text" tabindex="12" id="title" name="title" type="text" value="" verify="text/255/0/0"/><span class="spanVaildate"></span>
				</div>
				<div class="input-group">
					<label class="input-label"><span class="lbl-yes">*</span>账号状态：</label>
					<input class="input-radio" name="status" type="radio" value="1" checked="checked"/><span class="input-radio-span">开启</span>
					<input class="input-radio" name="status" type="radio" value="0"/><span class="input-radio-span">暂停</span>
				</div>
				<div id="footBtn">
					<button class="btn-save" type="submit">保存</button>
					<button class="btn-cancel" id="btn-cancel-authority" type="button">取消</button>
				</div>
			</form>
		</div>
    </div>
</div>
</@override>
<@extends name="/common/simple.ftl"/>